package org.dtrd.modules.food.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwFoods;

import java.util.Date;

/**
 * @author qr
 * @date 2021/12/8 15:11
 */
@ApiModel("食材列表信息")
@Getter
@Setter
public class FoodListInfo {

    private Integer id;

    @ApiModelProperty("食材名称")
    private String foodName;

    @ApiModelProperty("食材照片")
    private String foodPhoto;

    @ApiModelProperty("食材质量")
    private Float foodWeight;

    @ApiModelProperty("卡路里量")
    private Float foodKcal;

    @ApiModelProperty("蛋白质")
    private Float foodProtein;

    @ApiModelProperty("脂肪")
    private Float foodFat;

    private String label;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public FoodListInfo(DtrdExtEmsYwFoods po) {
        this.id = po.getDataId();
        this.foodName = po.getFoodName();
        this.foodPhoto = po.getFoodThumb();
        this.foodWeight = po.getFoodWeight();
        this.foodKcal = po.getFoodKcal();
        this.foodProtein = po.getFoodProtein();
        this.foodFat = po.getFoodFat();
    }
}
